package com.lix.feignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * manage 服务消费者（调用方）
 */
@FeignClient(name = "core-service", url = "http://localhost:1218") // 假设core服务运行在1218端口
public interface CoreServiceClient {

    // 跟DataService的路径保持一直
    @GetMapping("/data")
    String getData();
}
